package com.ruoyi.performance.remote;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.teacher.api.RemoteTeacherService;
import com.ruoyi.teacher.api.domain.TeacherDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class LoadTeacherTypeListImpl {
    @Autowired
    private RemoteTeacherService remoteTeacherService;
    /**
     * 加载教师类型列表
     */
    @GetMapping(value = "/loadTeachers")
    R<List<TeacherDto>> loadTeachers(){
        R<List<TeacherDto>> listR = remoteTeacherService.loadTeachers();
        return listR;
    }
}
